home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Security
- BackColor = &H00C0C0C0&
- Caption = "Access Security"
- ClientHeight = 2535
- ClientLeft = 2250
- ClientTop = 1905
- ClientWidth = 5970
- Height = 3225
- Left = 2190
- LinkTopic = "Form1"
- ScaleHeight = 2535
- ScaleWidth = 5970
- Top = 1275
- Width = 6090
- Begin CommandButton Command3
- Caption = "OK"
- Height = 420
- Left = 4275
- TabIndex = 7
- Top = 1395
- Width = 1095
- End
- Begin SSPanel StatusBar
- Alignment = 1 'Left Justify - MIDDLE
- BorderWidth = 1
- Height = 510
- Left = 0
- TabIndex = 4
- Top = 2070
- Width = 7350
- End
- Begin TextBox Text2
- Height = 330
- Left = 1800
- PasswordChar = "*"
- TabIndex = 3
- Top = 765
- Width = 3570
- End
- Begin TextBox Text1
- Height = 375
- Left = 1800
- TabIndex = 2
- Top = 270
- Width = 3570
- End
- Begin CommandButton Command2
- Caption = "Set Security Info"
- Height = 420
- Left = 2385
- TabIndex = 1
- Top = 1395
- Width = 1680
- End
- Begin CommandButton Command1
- Caption = "Get Security Info"
- Height = 420
- Left = 495
- TabIndex = 0
- Top = 1395
- Width = 1680
- End
- Begin Label Label2
- BackColor = &H00C0C0C0&
- Caption = "Password"
- Height = 285
- Left = 540
- TabIndex = 6
- Top = 765
- Width = 915
- End
- Begin Label Label1
- BackColor = &H00C0C0C0&
- Caption = "User ID"
- Height = 240
- Left = 540
- TabIndex = 5
- Top = 315
- Width = 870
- End
- Begin Menu MenuExit
- Caption = "&Exit"
- End
- Sub Command1_Click ()
- Dim NTable As Integer
- Dim SessionInfo As PESessionInfo
- NTable = 0
- SessionInfo.StructSize = Len(SessionInfo)
- SessionInfo.UserID = Chr$(0)
- SessionInfo.Password = Chr$(0)
- SessionInfo.SessionHandle = 0
- If PEGetNthTableSessionInfo(JobNum, 0, SessionInfo) = 1 Then
- Text1.Text = SessionInfo.UserID
- Text2.Text = SessionInfo.Password
- Security!StatusBar.Caption = "Security Info Retrieved!"
- RCode = GetErrorString(JobNum)
- MsgBox "PEGetNthTableSessionInfo Error #: " + Str(ErrorCode) + " - " + RCode
- End If
- End Sub
- Sub Command2_Click ()
- Dim NTable As Integer
- Dim SessionInfo As PESessionInfo
- NTable = 0
-
- SessionInfo.StructSize = Len(SessionInfo)
- SessionInfo.UserID = Text1.Text + Chr$(0)
- SessionInfo.Password = Text2.Text + Chr$(0)
- SessionInfo.SessionHandle = 0
- If PESetNthTableSessionInfo(JobNum, NTable, SessionInfo, True) = False Then
- RCode = GetErrorString(JobNum)
- MsgBox "PESetNthTableSessionInfo Error #: " + Str(ErrorCode) + " - " + RCode
- Else
- Security!StatusBar.Caption = "Security Info Set!"
- End If
- End Sub
- Sub Command3_Click ()
- Unload Me
- End Sub
- Sub MenuExit_Click ()
- Unload Me
- End Sub
- Sub MenuMoreInfo_Click ()
- End Sub
-